print n numbers using while loop